/**
 * Baijiahulian.com Inc.
 * Copyright (c) 2014-2017 All Rights Reserved.
 */
package com.baijia.web.aegis;

import com.baijia.aegis.key.BlockedKey;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;

/**
 * @title SendPasscodeKey
 * @desc description
 * @author macrohuang
 * @date Jan 10, 2017
 * @version version
 */
@Component("sendPasscodeKey")
public class SendPasscodeKey implements BlockedKey {

    /* (non-Javadoc)
     * @see com.baijia.aegis.key.BlockedKey#getBlockedKeys(java.lang.Object[])
     */
    @Override
    public Object[] getBlockedKeys(Object...params) {
        return new Object[]{ StringUtils.join(new Object[]{ params[0],"_",params[1]})};
    }
}
